<template>

<FormDesign :fromid="route.query.fromid" @preview="(e) => {  openform(e) }   "></FormDesign>
</template>
<script lang="ts" setup>
import { ref,onMounted} from "vue";
import {FormDesign,LayerForm }from "webos-form-design";

import listutils from "../../../utils/listutils";
import { layer } from "@layui/layer-vue";
import { useRoute ,useRouter} from 'vue-router';
import webosutils from 'webosutils';
const router = useRouter();
const route = useRoute();
//初始化表单

const openform = (e:any) => {

    listutils.openform("表单设计器",0, LayerForm,{fromdata:e,fromvalue:{}, callback: (e:any) => {  
    layer.confirm(JSON.stringify(e))
  
} }, ["50%", "50%"],{});

}
</script>
